package lib.web;

class QueyString {
	/**
	 * 哈希数组转换成 queyString
	 * @param map 哈希数组
	 * @return String 返回queyString
	 */
	public static function stringify(map:Map<String, Dynamic>):String {
		return [for (key in map.keys()) '$key=${map.get(key)}'].join("&");
	}

	public static function parse(str:String):Map<String, Dynamic> {
		var map = new Map<String, Dynamic>();
		return map;
	}
	// public static function queyString2Map(String):Map<String, Dynamic> {
	//     //var str = "xxx=xxxx&xsd=xxx";
	//     //return [];
	// }
}
